﻿<%@ Page Title="报名管理" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="AdminApply.aspx.cs" Inherits="admin_AdminApply" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">

    <div class="am-cf am-padding">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">报名管理列表</strong> / <small>ApplyManage</small></div>
    </div>

    <div class="am-g" style="margin-bottom: 16px;">
        <div class="am-u-sm-12 am-u-md-2">
            <div class="am-btn-toolbar">
                <div class="am-btn-group am-btn-group-xs">
                    <asp:LinkButton runat="server" ID="exportExcel" CssClass="am-btn am-btn-default" OnClick="exportExcel_Click" ><span class="am-icon-send"></span>&nbsp;导出报名数据</asp:LinkButton>
                </div>
            </div>
        </div>
        <div class="am-u-sm-12 am-u-md-3">
            <div class="am-u-sm-8 am-u-md-10">
                <asp:DropDownList data-am-selected="{btnSize: 'sm'}" Style="display: none;" ID="List_ExamAllName" runat="server">                    
                </asp:DropDownList>
            </div>
        </div>
        <div class="am-u-sm-12 am-u-md-3">
            <div class="am-u-sm-8 am-u-md-10">
                <asp:DropDownList data-am-selected="{btnSize: 'sm'}" Style="display: none;" ID="List_ApplyState" runat="server">
                    <asp:ListItem Value="-1" Selected="True">全部</asp:ListItem>
                    <asp:ListItem Value="0">未报名</asp:ListItem>
                    <asp:ListItem Value="1">报名中</asp:ListItem>
                    <asp:ListItem Value="2">已完成</asp:ListItem>
                </asp:DropDownList>
            </div>
        </div>
        <div class="am-u-sm-12 am-u-md-1" >
            <div class="am-form-group am-form-group-sm">
                <asp:TextBox runat="server" ID="txtStudentId" CssClass="am-form-field am-input-sm" placeholder="身份证号 / 学号" Width="180px"></asp:TextBox>
            </div>
        </div>
        <div class="am-u-sm-12 am-u-md-1">
            <div class="am-form-group">
                <asp:Button ID="btnSearch" runat="server" CssClass="am-btn am-btn-sm" Style="background-color: #0094ff; color: #fff" Text="查  找" OnClick="btnSearch_Click" />
            </div>
        </div>
    </div>

    <div class="am-g">
        <div class="am-u-sm-12">
            <asp:GridView ID="gv" runat="server" DataKeyNames="ApplyID,ApplyState,OrderID,EmID,EmYear,EmNum,EmRankName" PageSize="12" AllowPaging="True" AutoGenerateColumns="false" CssClass="am-table am-table-striped am-table-hover table-main" GridLines="None" OnPageIndexChanging="gv_PageIndexChanging" OnRowEditing="gv_RowEditing" OnRowUpdating="gv_RowUpdating" OnRowCancelingEdit="gv_RowCancelingEdit">
                <Columns>
                    <asp:TemplateField HeaderText="序号">
                        <HeaderStyle></HeaderStyle>
                        <ItemTemplate>
                            <%# Container.DataItemIndex + 1%>
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:BoundField ReadOnly="true" DataField="ApplyID" HeaderText="报名号" />
                    <asp:BoundField ReadOnly="true" DataField="StudName" HeaderText="姓名" />
                    <asp:TemplateField HeaderText="学院">
                        <EditItemTemplate>
                            <asp:TextBox runat="server" ID="txtDeptName" Text='<%#Bind("StudDeptName") %>' Width="130px"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lbDeptName" runat="server" Text='<%#Bind("StudDeptName") %>'></asp:Label>
                        </ItemTemplate>

                    </asp:TemplateField>

                    <asp:TemplateField HeaderText="班级">
                        <EditItemTemplate>
                            <asp:TextBox runat="server" ID="txtClassName" Text='<%#Bind("StudClassName") %>' Width="80px"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lbClassName" runat="server" Text='<%#Bind("StudClassName") %>' Width="80px"></asp:Label>
                        </ItemTemplate>

                    </asp:TemplateField>
                    <asp:BoundField ReadOnly="true" DataField="EmAllName" HeaderText="名称" ItemStyle-Width="230px" />

                    <asp:TemplateField HeaderText="级别">
                        <EditItemTemplate>
                            <asp:DropDownList runat="server" ID="ddlRankList" Width="110px"></asp:DropDownList>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lbEmRankName" runat="server" Text='<%#Bind("EmRankName") %>'></asp:Label>
                        </ItemTemplate>

                    </asp:TemplateField>
                    <asp:BoundField ReadOnly="true" DataField="ApplyStateCHN" HeaderText="状态" />
                    <asp:BoundField ReadOnly="true" DataField="ApplyFhTime" ItemStyle-Width="90px" DataFormatString="{0:yyyy-MM-dd }" HeaderText="完成时间" />

                    <%--<asp:TemplateField HeaderText="操作" ItemStyle-Width="100px">
                        <EditItemTemplate>
                            <asp:LinkButton CssClass="am-btn am-btn-default am-btn-xs am-text-secondary apply-edit" ID="update" runat="server" CommandName="Update"><span class="am-icon-pencil-square-o"></span>&nbsp;更新</asp:LinkButton>
                            <asp:LinkButton CssClass="am-btn am-btn-default am-btn-xs am-text-secondary apply-edit" ID="cancel" runat="server" CommandName="Cancel"><span class="am-icon-pencil-square-o"></span>&nbsp;取消</asp:LinkButton>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <div class="am-btn-toolbar">
                                <div class="am-btn-group am-btn-group-xs" style="position: relative;">

                                    <asp:LinkButton CssClass="am-btn am-btn-default am-btn-xs am-text-secondary apply-edit" ID="LinkButton1" runat="server" CommandName="Edit"><span class="am-icon-pencil-square-o"></span>&nbsp;编辑</asp:LinkButton>
                                </div>
                            </div>
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>--%>
                </Columns>
                
                <PagerSettings 
               
                    Mode="NumericFirstLast"
                    FirstPageText="首页"
                    LastPageText="末页"
                    PageButtonCount="7"
                    Position="Bottom" />
                <PagerStyle
                     BorderColor="#66FF66" Font-Names="微软雅黑" Font-Size="12px" HorizontalAlign="Center"
                        CssClass="pageIndex" />
            </asp:GridView>

            <hr />
            <p>注：当前显示为第一选项的所有报名信息</p>
        </div>
    </div>

</asp:Content>


